﻿using liaowa2.Entity.DataModel;
using liaowa2.Entity.DTO;
using liaowa2.Utils;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace liaowa2.Web.Controllers
{
    public class HomeController : BaseController
    {
        // GET: Home
        public ActionResult Index()
        {
            ManagerUser admin = new ManagerUser();
            if (Request.Cookies[ParameterConfig.CookieName] != null)
            {
                string EncryptData = Request.Cookies[ParameterConfig.CookieName].Value;
                admin = JsonConvert.DeserializeObject<ManagerUser>(EncodeSecurity.DecryptString(UtilsBase.UrlDecode(EncryptData)));
            }
            ViewBag.UserName = admin.user_name;
            return View();
        }

        public ActionResult Center()
        {
            
            return View();
        }

        public ActionResult upload()
        {
            return View();
        }

    }
}